<?php
/**
 * @version		$Id: admin.k2mart.php 25 2010-09-08 15:16:11Z joomlaworks $
 * @package		K2mart
 * @author    JoomlaWorks http://www.joomlaworks.gr
 * @copyright Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved.
 * @license		Commercial - This code cannot be redistributed without permission from Nuevvo Webware Ltd.
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

$document = & JFactory::getDocument();
$document->addStyleSheet(JURI::base().'components/com_k2mart/css/style.css');
$document->addStyleSheet(JURI::base().'templates/system/css/system.css');

$view = JRequest::getCmd('view', 'dashboard');
JLoader::register('K2martController'.$view, JPATH_COMPONENT.DS.'controllers'.DS.$view.'.php');
$class = 'K2martController'.$view;
$controller = new $class();
$controller->execute(JRequest::getWord('task'));
$controller->redirect();
?>

